package com.huxin.soa.entry;

import lombok.Data;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;

@Entity
@Data
@ToString
public class User {

    @Enumerated(EnumType.STRING)
    private ROLE role;
    @Id
    private String username;
    private String password;

    public enum ROLE {
        admin, user;
    }

}
